import service from '@/utils/request'

export const getTimeTaskList = (params) => {
  return service({
    url: '/admin/task',
    method: 'get',
    params
  })
}

export const addTimeTask = (data) => {
  return service({
    url: '/admin/task',
    method: 'post',
    data
  })
}

export const putTimeTask = (data) => {
  return service({
    url: '/admin/task',
    method: 'put',
    data
  })
}

export const deleteTimeTask = (data) => {
  return service({
    url: '/admin/task',
    method: 'delete',
    data
  })
}
